package org.filters;
import org.opencv.core.*;
import org.opencv.imgcodecs.Imgcodecs;
import org.opencv.imgproc.Imgproc;

public class Blur implements Filter{
    public void applyFilter(String imagePath) {
        Mat src = Imgcodecs.imread(imagePath);
        Mat dst = new Mat();
        Imgproc.GaussianBlur(src, dst, new Size(15, 15), 0);
        Imgcodecs.imwrite("output_blur.jpg", dst);
        System.out.println("Blur filter applied.");
    }
}
